package packge.obj;

class ObTest1 {
	public static void main(String str[]) {
		Service.displayObjectInfo(null);
		Service.displayObjectInfo("JLC");
		Service.displayObjectInfo(new Boolean(true));
		Service.displayObjectInfo(new Student1());
	}
}

class Service {
	static void displayObjectInfo(Object obj) {
		System.out.println("*** " + obj + " ***");
		if (obj != null) {
			Class cl = obj.getClass();
			System.out.println(cl.getName());
			System.out.println(cl.getSuperclass());
			System.out.println(cl.getPackage());
			System.out.println("---- INTERFACES ----");
			Class ints[] = cl.getInterfaces();
			for (int i = 0; i < ints.length; i++) {
				System.out.println(ints[i]);
			}
		}
	}
}

interface inter1 {
}

interface inter2 {
}

class Person {
}

class Student1 extends Person implements Cloneable, inter1, inter2 {
}